{style}{literal}
.ow_ipc .ow_ipc_info .clearfix .ow_ipc_toolbar{
    white-space: normal;
}

{/literal}{/style}

{if !empty($list)}
	{foreach from=$list item='post'}
		{*-- decorator data*}
		{assign var="dto" value=$post.dto}
		{assign var=userId value=$dto->getAuthorId()}
		{assign var='id' value=$dto->id}
		{capture assign='info_string'}
			<a href="{blog_post_url id=$post.dto->getId()}">{$post.dto->getTitle()|strip_tags}</a></span>
		{/capture}

		{capture assign="moreLink"}<a class="ow_lbutton" href="{blog_post_url id=$post.dto->getId()}">{text key='blogs+more'}</a>{/capture}

		{capture assign='content'}
			<div class="ow_small ow_smallmargin">
                {if $commentInfo[$id] > 0}
                    <span class="ow_txt_value">
                        {assign var='id' value=$dto->id}
                        {$commentInfo[$id]}
                    </span>
                    <a href="{url_for_route for="post:[id=>`$id`]"}">
                        {text key='blogs+toolbar_comments'}
                    </a>
                {/if}
			</div>
			<div class="ow_smallmargin">{if $post.truncated}{$post.text|strip_tags}... {$moreLink}{else}{$post.text|strip_tags}{/if}</div>
		{/capture}

		{*~~ decorator data*}
		{decorator name='ipc' addClass='ow_smallmargin' infoString=$info_string content=$content avatar=$avatars[$userId] toolbar=$tbars[$id]}
	{/foreach}
{else}
	<div class="ow_nocontent">
		{capture assign ='addnewurl'}{url_for_route for='post-save-new'}{/capture}
		{text key="blogs+index_widget_empty"} <a href="{$addnewurl}">{text key='blogs+add_new'}</a>
	</div>
{/if}